package demo_designPattern.proxy.staticProxy;

import java.util.logging.Logger;

public class DataCollectorLogProxy implements Collector {
    Collector collector ;
    Logger log = Logger.getAnonymousLogger();
    
    public DataCollectorLogProxy(Collector collector) {
	super();
	this.collector = collector;
    }

    @Override
    public void collect() throws InterruptedException {
	
	log.info("start log");
	collector.collect();
	log.info("end log");
    }
}
